package com.qumitech.visualnovel.datasource.console;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.console.UserPropExchangeDO;

public interface UserPropExchangeDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserPropExchangeDO record);

    int insertSelective(UserPropExchangeDO record);

    UserPropExchangeDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserPropExchangeDO record);

    int updateByPrimaryKey(UserPropExchangeDO record);

    int getCount(@Param("uid") String uid,
        @Param("originType") String originType,
        @Param("originId") String originId,
        @Param("toPropType") String toPropType,
        @Param("toPropId") String toPropId,
        @Param("startTime") String startTime,
        @Param("endTime") String endTime);

    List<UserPropExchangeDO> getList(@Param("uid") String uid,
        @Param("originType") String originType,
        @Param("originId") String originId,
        @Param("toPropType") String toPropType,
        @Param("toPropId") String toPropId,
        @Param("startTime") String startTime,
        @Param("endTime") String endTime,
        @Param("offset") int offset,
        @Param("limit") int limit);
}